//
//  DDChoiceInvoiceInfoVC.swift
//  DingDongZP
//
//  Created by 三秒文化 on 2016/10/18.
//  Copyright © 2016年 51ledian.com. All rights reserved.
//

import UIKit

class DDChoiceInvoiceInfoVC: LDBaseTableViewVC {

    // MARK: - Table view data source
    private let cellDetailID = "DDChoiceInvoiceInfoVCDetailID"
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
    }
    
    override func setNav() {
        
        let rightBar = UIBarButtonItem.init(title: "管理", style: UIBarButtonItemStyle.Done, target: self, action: #selector(tapRightBar))
        navigationItem.rightBarButtonItem = rightBar
    }
    
    override func tapRightBar() {
        
    }
}

extension DDChoiceInvoiceInfoVC {
    
    override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        // #warning Incomplete implementation, return the number of rows
        return 1
    }
    
    override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell{
        
        var cell = tableView.dequeueReusableCellWithIdentifier(cellDetailID)
        if cell == nil {
            
            cell = DDInvoiceDetailViewCell(topMargin:LDFrame.TableCellMargin, style: .Default, reuseIdentifier: cellDetailID)
        }
        
        return cell!
        
    }
    
    override func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {
        
        return 260
    }
    
}
